import request from '@/utils/request'

/**
 * 体验券列表
 * http://192.168.88.247:4999/web/#/80/1753
 * @param {Object} params
 * @returns
 */
export function experienceList (params) {
  return request({
    url: '/api/v1/exp_coupon/list',
    method: 'get',
    params
  })
}
/**
 * 体验券创建
 * http://192.168.88.247:4999/web/#/80/1750
 * @param {Object} data
 * @returns
 */
export function createExperience (data) {
  return request({
    url: '/api/v1/exp_coupon/add',
    method: 'post',
    data
  })
}
/**
 * 体验券更新
 * http://192.168.88.247:4999/web/#/80/1751
 * @param {Object} data
 * @returns
 */
export function updateExperience (data) {
  return request({
    url: '/api/v1/exp_coupon/update',
    method: 'put',
    data
  })
}
/**
 * 体验券使用列表
 * http://192.168.88.247:4999/web/#/80/1752
 * @param {Object} params
 * @returns
 */
export function experienceExchList (params) {
  return request({
    url: '/api/v1/exp_coupon/draw_log',
    method: 'get',
    params
  })
}
/**
 * 体验券使用列表
 * http://192.168.88.247:4999/web/#/80/1756
 * @param {Object} params
 * @returns
 */
export function exportExperience (data) {
  return request({
    url: '/api/v1/exp_coupon/export_list',
    method: 'post',
    data
  })
}
